package com.oocl.testbeanutil;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.oocl.test.BaseServlet;

/**
 * Servlet implementation class TestBeanUtilsServlet
 */
public class TestBeanUtilsServlet extends BaseServlet {
	public void testBean(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		User user = BeanUtil.toBean(request.getParameterMap(), User.class);
		System.out.println(user);
	}
}
